package com.ruoyi.system.api.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品图片对象 sh_product_picture
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
@Data
public class ShProductPicture extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品id主键 */
    @Excel(name = "商品id主键")
    private Long productId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productPic;

    @Excel(name = "是否视频")
    private Integer isVideo;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("productPic", getProductPic())
            .append("createTime", getCreateTime())
            .toString();
    }
}
